const Koa = require('koa');

const statics = require('koa-static');

const path = require('path');

const app = new Koa();

// 静态资源的路径,static(路径)
app.use(statics(path.join(__dirname, 'statics')));

app.use(async ctx => {
  ctx.body = 'statics静态文件路径';
}).listen(3030, () => {
  console.log('statics');
})
